//
//  CommonScene.h
//  p1
//
//  Created by yoona park on 13. 9. 30..
//
//

#ifndef __p1__CommonScene__
#define __p1__CommonScene__

#include <iostream>
#include "cocos2d.h"

#define BACKGROUND_RESTART_SEC    60*10

class Common : public cocos2d::CCLayer
{
public:
    int m_nNetworkTime;
    float   m_fScale;
    int m_nNetworkLoadStatus;

    virtual bool init();
    void loadingStart(std::string msg);
    void loadingEnd();
    void setDefine();
    void delayCCCallFunc(float delay, cocos2d::SEL_CallFunc selector);
    void delayCCCallFuncN(float delay, cocos2d::SEL_CallFuncN selector, CCObject* pObject);
    bool backgroundTimeCheck();
    void exitApp();
};
#endif /* defined(__p1__CommonScene__) */
